/**
 * Created by shc@lierda.com on 2017/11/17.
 */
var React = require('react');
var Icon = require('../components/Icon');
var ajax = require('../tools/ajax');

module.exports = React.createClass({
    getInitialState: function (){
        return {

        }
    },

    componentDidMount: function () {

    },


    action(e){
        var action = e.currentTarget.getAttribute("action");
        location.href = action;
    },
    render: function () {
        var p = this;
        return (
            <div className="mainFunction">
                <div className="mf-s" onClick={this.action} action="#">
                    <Icon icon="#icon-shouye" style={{width:"1.1rem",height:"1.1rem"}}/>
                    <div>在线视频</div>
                </div>
                <div className="mf-s" onClick={this.action} action="#">
                    <Icon icon="#icon-fenlei" style={{width:"1.1rem",height:"1.1rem"}}/>
                    <div>商城</div>
                </div>
                <div className="mf-s" onClick={this.action} action="#">
                    <Icon icon="#icon-444" style={{width:"1.1rem",height:"1.1rem"}}/>
                    <div>私人订制</div>
                </div>
                <div className="mf-s" onClick={this.action} action="#">
                    <Icon icon="#icon-wode" style={{width:"1.1rem",height:"1.1rem"}}/>
                    <div>宠圈</div>
                </div>
            </div>
        )
    }
});
